package com.pojo;

import lombok.Data;

import java.util.Objects;

public class Shop {
    private Integer id;
    private String name;
    private String classify;
    private String description;

    public Shop() {
    }

    public Shop(Integer id, String name, String classify, String description) {
        this.id = id;
        this.name = name;
        this.classify = classify;
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Shop shop = (Shop) o;
        return Objects.equals(id, shop.id) && Objects.equals(name, shop.name) && Objects.equals(classify, shop.classify) && Objects.equals(description, shop.description);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, classify, description);
    }

    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", classify='" + classify + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
